#!/bin/bash

# current script dir
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

cd $DIR &&
cd ../../ &&

PACK_NAMES=($(ls -d */))

for i in "${PACK_NAMES[@]}"
do
  echo ">>> Installing" $(pwd) "->" ${i}
  yarn install --cwd ./${i}
done
